#!/usr/bin/env python
# -*- coding: utf-8 -*-

from .typing import SanicResponse
from sanic import Blueprint
from sanic.response import text
health_bp = Blueprint('健康检查',url_prefix='')

@health_bp.route("/ping",methods=['GET','POST'],name='ping检查')
def ping(request) -> SanicResponse:
    # import time
    # time.sleep(0.3)
    return text("ok")

@health_bp.route("/healthcheck",methods=['GET','POST'],name='healthcheck检查')
def healthcheck(request) -> SanicResponse:
    return text("ok")

@health_bp.route("/health",methods=['GET','POST'],name='health检查')
def health(request) -> SanicResponse:
    return text("ok")
